
<include file="public:head" />

<div class="fly-home fly-panel" style="background-image: url();">
  <img src="{:C('wkcms_site_url')}{$hisuid|getavatar}" alt="{$hisuid|getusername}">
  <h1>
    {$hisuid|getusername}<br>
    <span style="color:#5FB878;">{$hisuid|getrolename}</span>
  </h1>

  <p class="fly-home-info">
    <wkcms:doctotalnum type="lists" uid="$hisuid" own="1" order="add_time desc">
      <span style="font-size: 12px;">文档 {$data.doc} 份&nbsp;&nbsp;&nbsp;&nbsp;总下载 {$data.down} 次&nbsp;&nbsp;&nbsp;&nbsp;总评分 {$data.raty}&nbsp;&nbsp;&nbsp;&nbsp;{:C('wkcms_score_name')}：{$hisuid|getuserscore}</span>  
    </wkcms:doctotalnum>
     
  </p>

  <p class="fly-home-sign">（{$hisuid|getuserintro|msubstr=###,0,50}）</p>

  <div class="fly-sns" data-user="">
    <!-- 关注按钮 -->
      <if condition="$memberfocusid eq 3">
      <a class="layui-btn layui-btn-primary fly-imActive" data-uri="{:U('ucenter/delgz')}" onClick="quxiaogz({$hisuid},this)"><i class="glyphicon glyphicon-envelope"></i>相互关注</a> 
      <elseif condition="$memberfocusid eq 1" />
      <a class="layui-btn layui-btn-primary fly-imActive" data-uri="{:U('ucenter/delgz')}" onClick="quxiaogz({$hisuid},this)"><i class="glyphicon glyphicon-envelope"></i>已关注</a> 
      <elseif condition="$memberfocusid eq 5" />
      <a class="layui-btn layui-btn-primary fly-imActive"><i class="glyphicon glyphicon-envelope"></i>你自己</a> 
      <else />
      <a class="layui-btn layui-btn-normal fly-imActive" data-uri="{:U('ucenter/addgz')}" onClick="guanzhu({$hisuid},this)"><i class="glyphicon glyphicon-envelope"></i>加关注</a>
      </if>

   
    <!-- 关注按钮 end-->
  </div>

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title" style="margin-bottom: 5px;">{$hisuid|getusername} 上传的文档</h3>
        <ul class="jie-row">
          <wkcms:doc type="lists" uid="$hisuid" own="1"  order="add_time desc" pagenum="15">
          <empty name="data['list']">
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发布任何文档</i></div>
          </empty>
          <volist name="data['list']" id="vo">
          <li>
            <if condition="$vo.status eq 4"><span class="fly-jing">精</span></if>
            <a href="{:U('doc/doccon',array('id'=>$vo['id']))}" class="jie-title" target="_blank"> <i class="ic ic-{$vo.ext|strtolower}"></i> {$vo.title} </a>
            <i>{$vo.add_time|fdate}</i>
            <em class="layui-hide-xs">{$vo.hits}浏览/{$vo.downnum}下载</em>
          </li>
          </volist>
          <!-- 分页 -->
          <div style="text-align: center">
          <div class="laypage-main">{$data['page']}</div>
          </div>
          <!-- 分页END -->
          </wkcms:doc>
        </ul>
      </div>
    </div>

    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title" style="margin-bottom: 5px;">{$hisuid|getusername} 发布的帖子</h3>
        <ul class="jie-row">
          <empty name="myforumlist">
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发布任何帖子</i></div>
          </empty>
          <foreach  name="myforumlist" item="vo">
          <li>
            <if condition="$vo.jing eq 1"><span class="fly-jing jinghua">精</span></if>
            <if condition="$vo.top eq 1"><span class="fly-jing zhiding">置顶</span></if>
            <a href="{:U('forum/viewthread',array('id'=>$vo['id']))}" class="jie-title" target="_blank">· {$vo.title} </a>
            <i>{$vo.add_time|fdate}</i>
            <em class="layui-hide-xs">{$vo.hits}浏览/{$vo.comcount}回复</em>
          </li>
          </foreach >
          <!-- 分页 -->
          <div style="text-align: center">
          <div class="laypage-main">{$page}</div>
          </div>
          <!-- 分页END -->
        </ul>
      </div>
    </div>
    
     
  </div>
</div>
<!-- 主体结束 -->
<include file="public:footer" />
<script src="__PUBLIC__/theme/blueideal/mods/jquery.min.js"></script> 
<script>
function guanzhu(id, obj) {
    var uri = $(obj).attr('data-uri');
    $.post(uri, {
        id: id
    },

    function(result) {

        if (result.status == 1) {

            layer.msg(result.msg);

            window.location.reload();
        } else {
            layer.msg(result.msg);
        }
    });
}

function quxiaogz(id, obj) {
    var uri = $(obj).attr('data-uri');
    $.post(uri, {
        id: id
    },
    function(result) {

        if (result.status == 1) {

            layer.msg(result.msg);

            window.location.reload();
        } else {
            layer.msg(result.msg);
        }

    });

}
</script>  
<script>
layui.config({
  version: "3.0.0"
  ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>